<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    .parent{
      width: 100vw;
      height: 400px;
      background-color: blueviolet;
      margin-top: 100px;
      float: left;
    }
    .child{
      width: 100vw;
      height: 200px;
      background-color: rgb(243, 210, 81);
      margin-top: 50px;
    }
  </style>
</head>
<body>
  <div class="parent">
    <div class="child"></div>
  </div>
</body>
</html>